package com.hbjycl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hbjycl.dao.RoleDao;
import com.hbjycl.entity.Admin;
import com.hbjycl.entity.Role;
import com.hbjycl.service.RoleService;


@Service
public class RoleServiceImpl extends BaseServiceImpl<Role, String> implements RoleService
{
    @Resource
    private RoleDao roleDao;
    
    @Resource
    public void setRoleDao(RoleDao roleDao)
    {
        super.setBaseDao(roleDao);
        this.roleDao = roleDao;
    }
    

    @Override
    public Role getByName(String name)
    {
        return roleDao.getByName(name);
    }


    @Override
    public Role getByValue(String value)
    {
       return roleDao.getByValue(value);
    }

    @Override
    public List<Admin> getAdminList(String roleId)
    {
        // TODO Auto-generated method stub
        return roleDao.getAdminList(roleId);
    }
    
}
